package JsonLearning;

import java.util.Date;

import com.alibaba.fastjson.annotation.JSONField;

public class Students {

	private int sno;
	private String sname;
	private int age;
	@JSONField(format = "yyyy-MM-dd")
	private Date joinDate;

	public Students() {
	}

	public Students(int sno, String sname, int age, Date joinDate) {
		super();
		this.sno = sno;
		this.sname = sname;
		this.age = age;
		this.joinDate = joinDate;
	}

	public Date getJoinDate() {
		return joinDate;
	}

	public void setJoinDate(Date joinDate) {
		this.joinDate = joinDate;
	}

	public int getSno() {
		return sno;
	}

	public void setSno(int sno) {
		this.sno = sno;
	}

	public String getSname() {
		return sname;
	}

	public void setSname(String sname) {
		this.sname = sname;
	}

	public int getAge() {
		return age;
	}

	public void setAge(int age) {
		this.age = age;
	}

}
